<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html> 
<html lang="en"> 
<head> 
    <meta charset="utf-8"> 
    <meta name="viewport" content="width=device-width, initial-scale=1"> 
    <title>流程页</title> 
    <link href="${ctx}/static/css/base.css" rel="stylesheet">
    <link rel="stylesheet" href="${ctx}/static/uimaker/easyui.css">
    <link href="${ctx}/static/css/process.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="${ctx}/static/uimaker/icon.css">
	<style type="text/css">
		.error {
			color:red;
		}
	</style>
</head> 
<body>
	<!-- <div class="opt-buttons">
		<a href="javascript:history.back();" class="easyui-linkbutton" data-options="iconCls:'icon-back'">返回</a>
	</div> -->
	<form method="post" action="${ctx}/order/save" class="form0">
	  <input name="id" type="hidden" value="${order.id}" />
      <div class="basic-info">
      	<table class="kv-table">
			<tbody>
				<tr>
					<td class="kv-label">订单号</td>
					<td class="kv-content">
						<input value="${order.ajOrderId}" class="easyui-textbox" type="text" name="ajOrderId" style="width:166px;height:35px;line-height:35px;">
					</td>
					<td class="kv-label">商家名称</td>
					<td class="kv-content">
						<select class="easyui-combobox" name="sellerId" style="height:35px;width:166px;">
			            	<option value="">-请选择-</option>
			            	<c:forEach var="item" items="${sellers}">
			            		<option value="${item.id}" ${item.id eq order.sellerId ? "selected":""}>${item.nickname}</option>
			            	</c:forEach>
			            </select>
					</td>
				</tr>
				<tr>
					<td class="kv-label">车主姓名</td>
					<td class="kv-content">
						<input value="${order.buyerName}" class="easyui-textbox" type="text" name="buyerName" style="width:166px;height:35px;line-height:35px;">
					</td>
					<td class="kv-label">车主手机号</td>
					<td class="kv-content">
						<input value="${order.buyerMobile}" class="easyui-textbox" type="text" name="buyerMobile" style="width:166px;height:35px;line-height:35px;">
					</td>
				</tr>
				<tr>
					<td class="kv-label">车型</td>
					<td class="kv-content">
						<input value="${order.buyerCarType}" class="easyui-textbox" type="text" name="buyerCarType" style="width:166px;height:35px;line-height:35px;">
					</td>
					<td class="kv-label">地址</td>
					<td class="kv-content">
						<input value="${order.buyerAddress}" class="easyui-textbox" type="text" name="buyerAddress" style="width:166px;height:35px;line-height:35px;">
					</td>
				</tr>
				<tr>
					<td class="kv-label">安装产品</td>
					<td class="kv-content">
						<input value="${order.buyerProduct}" class="easyui-textbox" type="text" name="buyerProduct" style="width:166px;height:35px;line-height:35px;">
					</td>
					<td class="kv-label">备注</td>
					<td class="kv-content">
						<input value="${order.buyerRemark}" class="easyui-textbox" type="text" name="buyerRemark" style="width:166px;height:35px;line-height:35px;">
					</td>
				</tr>
				<tr>
					<td class="kv-label">价格</td>
					<td class="kv-content" colspan="3">
						<input value="${order.price}" class="easyui-textbox" type="text" name="price" style="width:166px;height:35px;line-height:35px;">
					</td>
				</tr>
				<tr>
					<td class="kv-label"></td>
					<td class="kv-content" colspan="3">
						<div class="opt-buttons">
							<a href="javascript:void(0);" class="easyui-linkbutton submit-btn" data-options="selected:true">确定</a>
							<a href="javascript:history.back();" class="easyui-linkbutton" >返回</a>
							<span class="error"></span>
						</div>
					</td>
				</tr>
			</tbody>
		</table>
      </div>
   </form>
</body>
<script type="text/javascript" src="${ctx}/static/js/jquery.min.js"></script>
<script type="text/javascript" src="${ctx}/static/js/jquery.easyui.min.js"></script>
<script type="text/javascript">
	$(function() {
		$(".submit-btn").on('click', function() {
			// 表单校验 必须要做
			$('.form0').submit();
		});
	});
	
	/* $(document).ready(function() {
	}); */
</script>
</html>